package com.yuhs.zixing.study.design.pattern.dp002.create.c001.singleton;

/**
 * @description 单例模式 饿汉式
 * @author: yuhs
 * @date 2022/3/29 下午2:43
 */
public class SingletonDemo001 {

    private static final SingletonDemo001 INSTANCE = new SingletonDemo001();

    private SingletonDemo001() {
    }

    public static SingletonDemo001 getInstance() {
        return INSTANCE;
    }
}
